<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>诛仙3</title>
    </head>
    <body>
        <h1>第一个js y&#769 y&#770</h1>
        <h2>&lt &gt &amp &pound;</h2>
        <p id="demo">js可以触发事件,就像点击按钮</p>
        <abbr title="123">缩写</abbr>
        <address>地址</address>
        <bdo dir="ltr">兔子</bdo>
        <blockquote>12123</blockquote>
        <cite>工作名称</cite>
        <del>删除内容</del>
        <ins>插入内容</ins>
        <sub>下标</sub>
        <sup>上标</sup>
        <textarea name="description" id="description">请输入内容</textarea>

        <script>
            function myFunction(){
               document.getElementById("demo").innerHTML="八嘎";
               x = document.getElementById("demo");
               x.style.color="#FF0000";
               document.getElementById("demo").style.color="#909090";
            }
        </script>
        <button type="button" onclick="myFunction()">点我</button>
    </body>
</html>